package com.hdax.dm.api.base;


import com.hdax.dm.dto.base.CarouselDto;
import com.hdax.dm.entity.base.Image;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "基础服务模块")
public interface ImageControllerApi {

    @PostMapping(path = "/base/image")
    @ApiOperation(value = "图片查询",notes = "根据条件查询图片")
    Image image(@RequestParam("targetId") Long targetId,
                    @RequestParam("type") Long type,
                    @RequestParam("category") Long category
    );

    @PostMapping(path = "/base/carousel")
    @ApiOperation(value = "图片查询",notes = "轮播图查询")
    List<CarouselDto> carousel();

}
